/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bugStatus;

/**
 *
 * @author Daniel
 */
public class Confirmado extends BugStatus {

    @Override
    public String getNome() {
        return "Confirmado";
    }
    
    @Override
    public BugStatus setNewState(BugStatus bugStatus) throws IllegalStatusChangeException {
        if (bugStatus instanceof Finalizado) {
            return new Finalizado();
        } else {
            throw new IllegalStatusChangeException();
        }

    }
    
}
